package com.ucode.crm.vo;

import com.ucode.crm.mode.Contacts;

public class ContactsVo extends Contacts {

    /**
     * 数据操作权利:0->负责人1->读写2->只读
     */
    private Integer power;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 客户名称
     */
    private String customerName;
    
    public ContactsVo() {
        super();
    }
    
    public ContactsVo(Contacts contacts,Integer power, String createUser, String customerName) {
        super();
        this.power = power;
        this.createUser = createUser;
        this.customerName = customerName;
        if(contacts != null){
            this.setId(contacts.getId());
            this.setCreatedTime(contacts.getCreatedTime());
            this.setUpdatedTime(contacts.getUpdatedTime());
            this.setDeltag(contacts.getDeltag());
            this.setCustomerId(contacts.getCustomerId());
            this.setDc(contacts.getDc()); 
            this.setName(contacts.getName());
            this.setMobile(contacts.getMobile());
            this.setTelephone(contacts.getTelephone());
            this.setEmail(contacts.getEmail());
            this.setWechat(contacts.getWechat());
            this.setQq(contacts.getQq()); 
            this.setDm(contacts.getDm());
            this.setJob(contacts.getJob());
            this.setBirthday(contacts.getBirthday()); 
            this.setSex(contacts.getSex()); 
            this.setAddress(contacts.getAddress()); 
            this.setRemark(contacts.getRemark()); 
            this.setOwnerUserId(contacts.getOwnerUserId());
            this.setCreateUserId(contacts.getCreateUserId()); 
        }
    }
    
    public Integer getPower() {
        return power;
    }
    public void setPower(Integer power) {
        this.power = power;
    }
    public String getCreateUser() {
        return createUser;
    }
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public String getCustomerName() {
        return customerName;
    }
    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
}
